<?php

defined('SYSPATH') or die('Access error!');

class Controller_Admin_Content extends Controller_Admin_Main
{

    public function action_left()
    {
        $left_arr[0]['name'] = '新闻管理';
        $left_arr[0]['sub'] = array(
            array("name" => "添加新闻", "url" => URL::site() . "admin/news/add", 'id' => 400001),
            array("name" => "新闻列表", "url" => URL::site() . "admin/news/list", 'id' => 40000333),
        );


        $left_arr[1]['name'] = '商城管理';
        $left_arr[1]['sub'] = array(
            array("name" => "商品列表", "url" => URL::site() . "admin/shop/list", 'id' => 400003355),
        );

        $left_arr[2]['name'] = '问答管理';
        $left_arr[2]['sub'] = array(
            array("name" => "问题列表", "url" => URL::site() . "admin/post/list", 'id' => 400003356),
        );


        $left_arr[3]['name'] = '供求管理';
        $left_arr[3]['sub'] = array(
            array("name" => "分类模板", "url" => URL::site() . "admin/trade/template/list", 'id' => 42203356),
            array("name" => "任务列表", "url" => URL::site() . "admin/trade/supply", 'id' => 42202236),
            array("name" => "需求列表", "url" => URL::site() . "admin/trade/demand", 'id' => 41102236),
        );
        $this->template->assign('left_arr', $left_arr);
        $this->template->view('left');
    }

}

